import React from "react";
import { Outlet } from "react-router-dom";
import { useSearchParams, useLocation } from "react-router-dom";
export default function Page1() {
  let [searchParams] = useSearchParams();
  console.log(searchParams.get("name"));
  let location = useLocation();
  console.log(location.state);
  return (
    <div>
      我是router的page页面
      <Outlet></Outlet>
    </div>
  );
}
